<?php require_once(dirname(__FILE__).'/inc/config.inc.php');IsModelPriv('site_add'); ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>添加新站点</title>
<link href="templates/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="templates/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="plugin/layer/layer.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/jquery.nicescroll.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/layindex.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/common.js"></script>
<script type="text/javascript" charset="utf-8" src="templates/js/Validform_v5.3.2_min.js"></script>


<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();
    });
</script>
</head>
<body class="mainbody">
<form method="post" id="form1" action="site_save.php"  >
<!--导航栏-->
<div class="location">
  <a href="site.php" class="back"><i></i><span>返回列表页</span></a>
  <a href="home.php" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <a href="site.php"><span>站点管理</span></a>
  <i class="arrow"></i>
  <span>添加新站点</span>
      <a href="javascript:location.reload();" class="reload">刷新</a>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a class="selected" href="javascript:;">添加新站点</a></li>
      </ul>
    </div>
  </div>
</div>
<?php
if(!empty($_SERVER['HTTP_HOST']))
	$baseurl = 'http://'.$_SERVER['HTTP_HOST'];
else
	$baseurl = "http://".$_SERVER['SERVER_NAME'];
?>
<div class="tab-content">

  <dl>
    <dt>站点名称</dt>
    <dd><input  name="site_name"  type="text" datatype="*" nullmsg="例如：英文站" class="input normal"  /> <span class="Validform_checktip">*站点切换名称，例如：英文站</span></dd>
  </dl> 
  <dl>
    <dt>站点标识</dt>
	<dd><input name="site_key" type="text" id="site_key" datatype="*" class="input normal" nullmsg="请设置标识,例如：en_US" errormsg="" sucmsg=" " value="" /> <span class="Validform_checktip">*站点切换参数，例如：en_US</span></dd>
  </dl>
  <dl>
    <dt>站点标题</dt>
  <dd><input name="webname" type="text" id="webname" class="input normal"  nullmsg="标题不能为空" sucmsg=" " value="" /> <span class="Validform_checktip">*用于META头部 &lt;title&gt; 显示</span></dd>
  </dl> 

   <dl>
    <dt>站点地址</dt>
    <dd><input type="text" name="weburl" id="weburl" class="input normal" value="<?php echo $baseurl; ?>" /><span class="Validform_checktip">*站点访问地址</span></dd>
  </dl>
  <dl>
    <dt>站点目录</dt>
    <dd><input name="webpath" type="text" id="webpath"  value="<?php echo $cfg_webpath; ?>" class="input normal" /><span class="Validform_checktip">*站点文件存放目录，根目录留空</span></dd>
  </dl>
  
    <dl>
    <dt>启用站点</dt>
    <dd>
      <div class="rule-single-checkbox">
          <input id="webswitch" type="checkbox" name="webswitch" value="true" checked="checked"/>
      </div>
      <span class="Validform_checktip">*选择“否”则该站点不允许访问</span>
    </dd>
  </dl>
    <dl>
    <dt></dt>
    <dd>
      更多站点基本信息可通过网站信息配置进行设置
    </dd>
  </dl>
  
</div>
<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-wrap">
    <input type="submit" name="btnSubmit" value="提交保存" class="btn" />
    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
	<input type="hidden" name="action" id="action" value="add" />
  </div>
</div>
<!--/工具栏-->
</form>
</body>
</html>
